package com.gengzp.common.model.user.req;

import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import com.gengzp.common.model.base.req.SearchByIdReq;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.logging.log4j.core.config.plugins.validation.constraints.NotBlank;

import java.io.Serial;

/**
 * @ClassName EditUserPasswordReq
 * @Description 编辑用户密码请求实体
 * @Author gengzp
 * @Date 2025/8/6 20:45
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "编辑用户密码请求实体")
public class EditUserPasswordReq extends SearchByIdReq {

    @Serial
    private static final long serialVersionUID = 9141898137752228262L;

    /**
     * 旧密码
     */
    @NotBlank(message = "旧密码不能为空")
    @ApiModelProperty(value = "旧密码", required = true)
    private String oldPassword;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码", required = true)
    private String newPassword;

}
